Напишите функцию, которая будет принимать строку (на английском языке) и возвращать сумму значений гласных букв. Каждой гласной букве соответствует какое-то число: A = 4, E = 3, I = 1, O = 0, U = 0.
Регистр букв роли не играет.
Примеры:
sum_of_vowels("Let\'s test this function.") ➞ 8 sum_of_vowels("Do I get the correct output?") ➞ 10 sum_of_vowels("I love edabit!") ➞ 12
Напишите функцию, которая будет принимать строку (на английском языке) и возвращать сумму значений гласных букв. Каждой гласной букве соответствует какое-то число: A = 4, E = 3, I = 1, O = 0, U = 0.
Регистр букв роли не играет.
Примеры:
sum_of_vowels("Let\'s test this function.") ➞ 8 sum_of_vowels("Do I get the correct output?") ➞ 10 sum_of_vowels("I love edabit!") ➞ 12
BY Python вопросы на собеседовании с ответами
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Mr. Durov launched Telegram in late 2013 with his brother, Nikolai, just months before he was pushed out of VK, the Russian social-media platform he founded. Mr. Durov pitched his new app—funded with the proceeds from the VK sale—less as a business than as a way for people to send messages while avoiding government surveillance and censorship.
The S&P 500 slumped 1.8% on Monday and Tuesday, thanks to China Evergrande, the Chinese property company that looks like it is ready to default on its more-than $300 billion in debt. Cries of the next Lehman Brothers—or maybe the next Silverado?—echoed through the canyons of Wall Street as investors prepared for the worst.
Python вопросы на собеседовании с ответами from tr